package com.easylinkin.linkappapi.crane.typehandler;


import com.easylinkin.linkappapi.common.typehandler.ListTypeHandler;
import com.easylinkin.linkappapi.crane.entity.WorkTime;
import com.alibaba.fastjson.TypeReference;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;
import java.util.List;


@MappedJdbcTypes(JdbcType.VARCHAR) // 数据库中该字段存储的类型
@MappedTypes(List.class)
public class WorkTimeListHandler extends ListTypeHandler<List<WorkTime>> {

  @Override
  protected TypeReference<List<WorkTime>> specificType() {
    return new TypeReference<List<WorkTime>>() { };
  }
}
